home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 May / PC Answers CD-ROM 7 (Future Publishing) (May 1995).iso / vbits / code / shaw / vbits16 / newdialo.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-13  |  1.1 KB  |  48 lines

  1. // newdialo.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vbits16.h"
  6. #include "newdialo.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CNewDialog dialog
  15.  
  16.  
  17. CNewDialog::CNewDialog(CWnd* pParent /*=NULL*/)
  18.     : CDialog(CNewDialog::IDD, pParent)
  19. {
  20.     //{{AFX_DATA_INIT(CNewDialog)
  21.         // NOTE: the ClassWizard will add member initialization here
  22.     //}}AFX_DATA_INIT
  23. }
  24.  
  25. void CNewDialog::DoDataExchange(CDataExchange* pDX)
  26. {
  27.     CDialog::DoDataExchange(pDX);
  28.     //{{AFX_DATA_MAP(CNewDialog)
  29.         // NOTE: the ClassWizard will add DDX and DDV calls here
  30.     //}}AFX_DATA_MAP
  31. }
  32.  
  33. BEGIN_MESSAGE_MAP(CNewDialog, CDialog)
  34.     //{{AFX_MSG_MAP(CNewDialog)
  35.     ON_BN_CLICKED(IDC_SayHello, OnSayHello)
  36.     //}}AFX_MSG_MAP
  37. END_MESSAGE_MAP()
  38.  
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CNewDialog message handlers
  42.  
  43. void CNewDialog::OnSayHello()
  44. {
  45.     MessageBox("Hello to new VC++ developers!");
  46.     
  47. }
  48.